package tech.eyao.hs60x.common;

public class ConstantsKey {
    private static final String PROJECT                 = "hs60x";

    private static final String PREFIX                  = ".";

    private static final String RD_SEND_SMS_CACHE_PHONE = "send_sms_code_phone_";


	public static String ELECTRICITY_NUM_KEY = PREFIX + PREFIX + "electricity_num_key";

    public static String getUserTokenKey(long userId) {
        return PROJECT + PREFIX + "token" + PREFIX + userId;
    }

    public static String getUserBindKey(long userId) {
        return PROJECT + PREFIX + "bind" + PREFIX + userId;
    }

    public static String getRdSendSmsCachePhone(String phone) {
        return RD_SEND_SMS_CACHE_PHONE + phone;
    }

	public static String getLastWatchLbsKey(long watchId) {
		return PROJECT + PREFIX + "last.watch.lbs." + watchId;
	}

	public static String getAccountKey(Long id) {
		return PROJECT + PREFIX + "account.key." + id;
	}

	public static String getSmsCount(String phoneNo) {
		return PROJECT + PREFIX + "sms_count_" + phoneNo;
	}

	public static String getAdminKey(Long userId) {
		return PROJECT + PREFIX + "admin" + userId;
	}
	
	public static String getWatchAdminKey(Long watchId) {
		return PROJECT + PREFIX + "watch_admin" + watchId;
	}

	public static String getShakeKey() {
		return PROJECT + PREFIX + "share_key";
	}

	public static String getStepFavourKey(long userId, long friendWatchId) {
		return PROJECT + PREFIX + "step_favour_key" + userId + friendWatchId;
	}

	public static String getCurrZoneKey(long watchId) {
		return PROJECT + PREFIX + "curr_zoneKey" + watchId;
	}

	public static String getZoneOutKey(long watchId) {
		return PROJECT + PREFIX + "zone_out_key" + watchId;
	}

	public static String getUserElectricityNotification(String adminAccountId) {
		return PROJECT + PREFIX + "user_electricitynotification_key" + adminAccountId;
	}

	public static String getWatchElectricitKey(long userId) {
		return PROJECT + PREFIX + "watch_electricit_key" + userId;
	}

}
